package com.eclink.asset.consume.domain.dao;

import com.baomidou.mybatisplus.annotation.TableField;
import com.eclink.asset.domain.dao.CommonEntity;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 盘点资产对象 asset_item
 *
 * @author chenshixian
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class ConsumeInventoryCheckRelItem extends CommonEntity {

    @ApiModelProperty("ID")
    private Integer id;

    private Integer fileId;

    @ApiModelProperty("编码")
    @Excel(name = "编码")
    private String number;

    @ApiModelProperty("名称")
    @Excel(name = "名称")
    private String name;

    @ApiModelProperty("分类ID")
    @Excel(name = "分类ID")
    private Long categoryId;

    @ApiModelProperty("分类名称")
    @Excel(name = "分类名称")
    private String categoryName;

    @Excel(name = "商品条码")
    private String barcode;

    @ApiModelProperty("品牌")
    @Excel(name = "品牌")
    private String brand;

    @ApiModelProperty("型号")
    @Excel(name = "型号")
    private String model;

    @ApiModelProperty("单价")
    @Excel(name = "单价")
    private BigDecimal price;

    @ApiModelProperty("计量单位")
    @Excel(name = "计量单位")
    private String unit;

    @ApiModelProperty("图片地址")
    private String imgUrl;

    @ApiModelProperty("仓库ID")
    private Long warehouseId;

    @ApiModelProperty("仓库名称")
    private String warehouseName;

    @Excel(name="应盘数量")
    private Integer num;

    @Excel(name="应盘金额")
    private BigDecimal totalPrice;

    @Excel(name="实盘数量")
    private Integer numReal;

    @Excel(name="实盘金额")
    private BigDecimal totalPriceReal;

    @Excel(name="差异")
    private Integer diff;

    @Excel(name="备注")
    private String remark;

    // 盘点人ID
    private Long userId;

    // 盘点人
    @Excel(name="盘点人")
    private String userName;

    @Excel(name="盘点时间")
    private LocalDateTime inventoryTime;

    @ApiModelProperty("父ID")
    private String parentId;

    private Integer state;

    private int delFlag;

}
